@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app, #root {
  height: 100%;
}
*{
  font-family:'Microsoft YaHei'!important;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
  .ant-table-thead > tr > th, .ant-table-tbody > tr > th, .ant-table-thead > tr > td, .ant-table-tbody > tr > td {
    white-space: unset;
  }
  .right-title{
    display: none;
  }
}

/* 弹窗样式处理 */
.ant-modal-wrap{
  overflow:hidden;
}

/* body区域 */
.ant-pro-basicLayout-content{
  position: relative;
    margin: 0px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

// @media (max-width: 480px)

/* 头部样式重写 */
.ant-pro-sider-menu-logo {
  position: relative;
  height: 50px;
  padding-left: 24px;
  overflow: hidden;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  line-height: 50px;
  background: #001529;
}
.ant-pro-global-header {
  position: relative;
  height: 50px;
  padding: 0;
  background: #fff;
  -webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}
.ant-layout-header {
  height: 50px;
  padding: 0 50px;
  line-height: 50px;
  background: #001529;
}
.ant-pro-global-header-trigger {
  height: 50px;
  line-height: 50px;
  vertical-align: top;
  padding: 0 22px;
  display: inline-block;
  cursor: pointer;
  -webkit-transition: all 0.3s, padding 0s;
  transition: all 0.3s, padding 0s;
}

.ant-pro-global-header-index-right .ant-pro-account-avatar .antd-pro-global-header-index-avatar {
  margin: calc((50px - 24px) / 2) 0;
  margin-right: 8px;
  color: #1890ff;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.85);
}
.ant-pro-global-header-logo {
  display: inline-block;
  height: 50px;
  padding: 0 0 0 10px;
  font-size: 20px;
  line-height: 50px;
  vertical-align: top;
  cursor: pointer;
  img{
    vertical-align: -0.425em;
  }
}

.ant-pro-global-header-trigger {
  height: 50px;
  line-height: 50px;
  vertical-align: top;
  padding: 0 20px;
  display: inline-block;
  cursor: pointer;
  -webkit-transition: all 0.3s, padding 0s;
  transition: all 0.3s, padding 0s;
}